<?php

/**
 * 文件由尚数增量代码引擎生成
 * @author: Shann 851188611@qq.com
 */

namespace app\admin\controller;

class OrderVerificationBase
{
    public function detail()
    {
        $order_verification = \app\model\OrderVerification::field(['id', 'order_id', 'code', 'status_value']);

        $order_verification->where('id', input('id'));

        $data['orderVerification'] = $order_verification->find();

        return json(['code' => 20000, 'data' => $data]);
    }

    public function update()
    {
        $param = request()->param();

        $model = \app\model\OrderVerification::find(input('id'));

        $model->save($param);

        return json(['code' => 20000, 'msg' => 'success']);
    }
}
